{block module=kernel name=message file="_frame/_message.tpl"}

{if $form.errors|count}
    <h2 class="error">Пожалуйста, заполните все поля помеченные звёздочкой</h2>
{/if}

{include file="backend/component/form/header.tpl"}
<table width="100%">
    <tr>
        <td align="left" valign="top">
        <div{if isset($form.errors.name)} class="error"{/if}>* {$form.elements.name.caption}:</div>
        {include file="component/form/"|cat:$form.elements.name.template|cat:".tpl" name="name" element=$form.elements.name}<br /><br />

        <div>{$form.elements.location.caption}:</div>
        {include file="component/form/"|cat:$form.elements.location.template|cat:".tpl" name="location" element=$form.elements.location}<br /><br />

        <div{if isset($form.errors.captcha)} class="error"{/if}>* {$form.elements.captcha.caption}:</div>
        {include file="component/form/"|cat:$form.elements.captcha.template|cat:".tpl" name="captcha" element=$form.elements.captcha}<br /><br />
        </td>
        
        <td align="left" valign="top">
        <div{if isset($form.errors.message)} class="error"{/if}>* {$form.elements.message.caption}:</div>
        {include file="component/form/"|cat:$form.elements.message.template|cat:".tpl" name="message" element=$form.elements.message}<br />
        <input type="submit" value="  Отправить  " />
        <br />
        * - обязательные поля                                                  
        </td>
    </tr>
</table>

</form>
</div>